import { GameManager, regGameManager } from "../GameManager";

/**日志管理器 */
@regGameManager()
export class LoggerManager extends GameManager {
    isDebug = false;
    public log(...data: any[]): void {
        if (this.isDebug)
            console.log(...data);
    }

    public error(...data: any[]): void {
        if (this.isDebug)
            console.error(...data);
    }

    public warn(...data: any[]): void {
        if (this.isDebug)
            console.warn(...data);
    }
}